home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ddj0897.zip
/
DYN401.ZIP
/
examples
/
exam11
/
class1.d
< prev
next >
Wrap
Text File
|
1995-09-27
|
2KB
|
66 lines
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/
/* This class definition builds on the previous example with the addition
of three instance variable declarations. Notice how the declaration
looks similar to a normal C structure definition. Remember that
instance variables are those variables which will be uniquely allocated
for each instance of the class.
Notice the nameing convention used. The leading i (which identifies
the variable as an instance variable) and the following upper case
letter make up the normal instance variable names. The nameing of
instance variables is just a convention and is not enforced by
Dynace. You may use another.
Notice that the instance variable iData has no type declaration.
When declaring instance (or class) variables, if no type is defined
Dynace defaults the type to 'object'.
*/
defclass Class1 {
char iName[30];
int iCode;
iData;
};
/*
*
* This source code is CONFIDENTIAL and
* PROPRIETARY to Algorithms Corporation. Unauthorized
* distribution, adaptation or use may
* be subject to civil and criminal penalties.
*
* Copyright (c) 1993 Algorithms Corporation
* 3020 Liberty Hills Drive
* Franklin, TN 37064
*
* ALL RIGHTS RESERVED.
*
*
*
*/